types_of_people = 10
#定义一个变量

x = f"There are {types_of_people} types of people."
#使用f的方式将上述的变量输出，同时将变量定义给到x

binary = "binary"
#定义一个字符串

do_not = "don't"

y = f"Those who know {binary} and those who {do_not}."
#类上述的x定义

print(x)

print(y)

print(x + y)
#使用+将两个字符串连接起来

print(f"I said: {x}")

print(f"I said: {y}")

hilarious = False #定义一个布尔变量

joke_evaluation = "Isn't that joke so funny?! {}" 

print(joke_evaluation.format(hilarious))#通过format()的方式将()里的内容填充到joke_evaluation中

w = "This is the left side of..."

e = "a string with a right side."

print(w + e)    #试用+将字符串拼接起来
#两种变量的使用方式和字符串拼接